package com.scgk.sync.common.constant;


import cn.hutool.core.collection.CollUtil;

import java.util.List;

/**
 * description: CommonConstant
 * date: 2021-08-06 18:50
 * @author: chenxd
 * version: 1.0
 */
public class CommonConstant {

    public final static String TOKEN = "Authorization";
    public final static String PHONE = "phone";
    public final static String X_USER = "X-User";
    public final static String USER = "user";
    public final static String TRACE_ID = "traceId";
    public final static String UNKNOWN = "unknown";

    /**
     * 连接符
     */
    public static final String CONNECTOR = ":";
    public static final String COMMA = ",";

    /**
     * 根节点的父节点ID
     */
    public static final long PARENT_ID_ROOT = 0;

    /**
     * 常用数字
     */
    public static final Integer NUMBER_ZERO = 0;
    public static final String NUMBER_ZERO_String = "0";
    public static final Integer NUMBER_ONE = 1;
    public static final String NUMBER_ONE_String = "1";
    public static final Integer NUMBER_TWO = 2;
    public static final Integer MINUS_NUMBER_TWO = -2;
    public static final String NUMBER_TWO_String = "2";
    public static final Integer NUMBER_THREE = 3;
    public static final String NUMBER_THREE_String = "3";
    public static final Integer NUMBER_FOUR = 4;
    public static final String NUMBER_FOUR_String = "4";
    public static final Integer NUMBER_FIVE = 5;
    public static final Integer NUMBER_SIX = 6;
    public static final Integer NUMBER_SEVEN = 7;
    public static final Integer NUMBER_EIGHT = 8;
    public static final String NUMBER_FIVE_String = "5";
    public static final String NUMBER_SIX_String = "6";
    public static final String NUMBER_SEVEN_String = "7";
    public static final String NUMBER_EIGHT_String = "8";
    public static final Integer NUMBER_ONE_TEN = 10;
    public static final Integer NUMBER_ONE_HUNDRED = 100;
    public static final int TWO_THOUSAND = 2000;

    public static final int NUMBER1 = 1;
    public static final int NUMBER2 = 2;

    /**
     * 常用状态码
     */
    public static final Integer SUCCESS_CODE = 200;
    public static final String SUCCESS_CODE_String = "200";

    public static final Integer SUCCESS_CODE1 = 1;



    public final static String TODAY = "today";

    /**
     * 日报管理是否上报省公司状态
     */
    public final static String YSB = "已上报";
    public final static String WSB = "未上报";
    public final static String SGSDATA = "省公司数据";

    public final static String BUSINESS_BD = "变电";
    public final static String BUSINESS_SD = "输电";

    public final static String YXZT_ZX = "在线";
    public final static String YXZT_BZX = "不在线";

    public final static String YK = "预控";
    public final static String LS = "临时";
    public final static String SXK = "市县控";

    public final static String GOOD = "优";
    public final static String MEDIUM = "良";
    public final static String NOTGOOD = "不合格";


    public final static String SGS = "国网安徽省电力有限公司生产管控中心";

    //预警单/督办单 省管控  --- 公用角色编码 请自行备注添加
    public final static String PROVINCE_GK = "province_gk";
    //预警单/督办单 省专责  --- 公用角色编码 请自行备注添加
    public final static String PROVINCE_ZZ = "province_zz";

    //预警单/督办单  市管控  --- 公用角色编码 请自行备注添加
    public final static String CITY_GK = "city_gk";
    //预警单/督办单  市专责 --- 公用角色编码 请自行备注添加
    public final static String CITY_ZZ = "city_zz";

    public final static String SCGK_PC_ROLE = "SCGK_PC_ROLE";




    /**
     * 专题日报管理地市
     */
    public static final List<String> ZT_RB_CITY = CollUtil.newArrayList("超高压","马鞍山","淮南","合肥","芜湖","黄山","滁州",
            "宣城","池州","淮北","阜阳","六安","蚌埠","亳州","铜陵","安庆","宿州");

    /**
     * 生产管控大屏查询最近多少天数据公共数据
     */
    public final static Integer RELATE_DAYS = -2;

    //导出模板
    public final static String PDF_DEMO_LIST_TEMPLATE = "/list_pdf.ftl";//电网风险工单导出模板
    public final static String PDF_DEMO_CONSULTATION_HSJY = "/hsjy.ftl";//会商纪要导出模板
    public final static String PDF_DBD_LIST_TEMPLATE = "/dbdlist_pdf.ftl";//督办单列表模板名称

}
